﻿using Microsoft.AspNetCore.Http;
using System;

namespace LightWadf.Core.Filter
{
    public abstract class IFilter : Attribute
    {
        /// <summary>
        /// 若前置方法返回结果不为空，则不调用逻辑处理方法
        /// </summary>
        /// <param name="context"></param>
        /// <returns></returns>
        public abstract object BeforeProcess(HttpContext context);
        public abstract void AfterProcess(HttpContext context, ref object result);
    }
}
